package com.adcc.swingui.demo.menubar;

/**
 * 危险天气预报
 */
import java.awt.Container;
import java.util.List;

import javax.swing.JComponent;
import javax.swing.JMenu;
import javax.swing.JMenuItem;

import com.adcc.swingui.base.DefaultMenuBar;
import com.jidesoft.swing.JideMenu;

public class WeiXianTianQiMenuBut extends DefaultMenuBar {

	JMenuItem item;
	JMenu menu;

	public WeiXianTianQiMenuBut(Container container) {
		super(container);
	}

	@Override
	protected JComponent build() {
		// TODO Auto-generated method stub
		menu = new JideMenu("危险天气预报");
		menu.setMnemonic('T');

		item = new JMenuItem("危险天气");
		addChildMenu(menu, item, "dangerWeather", true);
		return menu;
	}

	public void dangerWeather() {
		System.out.println("weixianWeather");
	}

	@Override
	protected void offLineVisiable(List<JComponent> jcomps) {
		// TODO Auto-generated method stub

	}
}
